<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>VUE绑定事件-事件修饰符-stop</title>
        <script type="text/javascript" src="https://unpkg.com/vue/dist/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <div style="width:200px;height:400px;background-color:darkseagreen" @click="parentClick">
                Parent Div
                <div style="margin-top: 40px;margin-left: 50px;width:100px;height:100px;background-color:hotpink" @click="child1Click">
                    Child1 Div
                </div>
                <div style="margin-top: 40px;margin-left: 50px;width:100px;height:100px;background-color:lawngreen" @click.stop="child2Click">
                    Child2 Div
                </div>
            </div>
        </div>
    </body>
    <script type="text/javascript">
        var vueObj = new Vue({
            el: '#app',
            data: {
                message: ""
            },
            methods: {
                parentClick: function() {
                    console.log("触发了parentClick方法，event：" + event);
                },
                child1Click: function() {
                    console.log("触发了child1Click方法【无修饰符】，event：" + event);
                },
                child2Click: function() {
                    console.log("触发了child2Click方法【stop修饰符】，event：" + event);
                }
            }
        });
    </script>
</html>